<include file="Public:head" />
<style>

    .table-striped tr  .td_dan{
        line-height: 30px;text-align: right;width: 50px
    }
    .width20{
        width: 260px;
    }
</style>
<body class="overflow-hidden">
<div class="wrapper preload">
    <include file="Public:header" />
    <include file="Public:left" />
    <div class="main-container">
        <div class="padding-md">
            <div class="row">
                <div class="col-sm-12">
                    <div class="page-title">
                        {$auth_group['id']?'编辑':'新增'}用户组
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <div class="smart-widget widget-green">
                        <form action="{:U('AuthManager/writeGroup')}" method="post" enctype="application/x-www-form-urlencoded" class="form-admin12">
                            <table class="table table-striped no-margin" >
                                <tr >
                                    <td  style="width: 10%;text-align: right;line-height: 34px;">用户组</td>
                                    <td >
                                        <input id="auth-title" type="text" name="title" class="form-control width20" value="{$auth_group.title}"/>
                                    </td>
                                </tr>
                                <tr >
                                    <td style="width: 10%;text-align: right;line-height: 34px;">用户组所属模块</td>
                                    <td >
                                        <select class="form-control width20" name="module">
                                            <volist name="module" id="vo">
                                                <eq name="vo['name']" value="$auth_group['module']">
                                                    <option value="{$vo.name}" selected >{$vo.name}</option>
                                                    <else />
                                                    <option value="{$vo['name']}">{$vo['name']}</option>
                                                </eq>
                                            </volist>
                                        </select>
                                    </td>
                                </tr>
                                <tr >
                                    <td style="width: 10%;text-align: right;line-height: 34px;">描述</td>
                                    <td >
                                        <textarea id="auth-description" type="text" name="description" class="form-control width20" style="height: 100px;">{$auth_group.description}</textarea>
                                    </td>
                                </tr>
                                <tr class="result_list">
                                    <td>&nbsp;</td>
                                    <td>
                                        <button class="action-button ajax-post" target-form="form-admin12" type="submit">保存设置</button>
                                        <button class="action-button" type="button" onclick="window.open('{:U("AuthManager/index")}','_self')">返回</button>
                                    </td>
                                </tr>
                            </table>
                        </form>
                    </div><!-- ./smart-widget -->
                </div><!-- ./col -->
            </div><!-- ./row -->
        </div><!-- ./padding-md -->
    </div><!-- /main-container -->
    <include file="Public:foot" />
</div><!-- /wrapper -->
<!--<include file="Public/base_fc" />-->
<a href="#" class="scroll-to-top hidden-print"><i class="fa fa-chevron-up fa-lg"></i></a>
</body>
</html>
<block name="script">
    <script>
        $(function(){
            highlight_nav2('{:U("AuthManager/index")}');

        })
    </script>
</block>
